
#encoding=UTF-8

from Error import *
from Building import *

class ClanCastle(Building):
	def __init__(self):
		Building.__init__(self)
		self.url = "http://clashofclans.wikia.com/wiki/Clan_Castle"
		self.number_available_dsec = """
0	0	1	1	1	1	1	1	1	1
"""
		self.level_info_desc = """
1	40,000	1,000	10	Instant	0	3
2	100,000	1,400	15	6 hours	146	4
3	800,000	2,000	20	1 day	293	6
4	1,800,000	2,600	25	2 days	415	8
5	7,000,000	3,000	30	7 days	777	9
"""
		self._DoParse()

	def _HitPointsIndex(self):
		return 2

	def _BuildCostType(self):
		return 0 #Gold

	def _BuildCostIndex(self):
		return 1

	def _BuildTimeIndex(self):
		return 4

	def _ExperienceGainedIndex(self):
		return 5

	def _TownHallLevelRequiredIndex(self):
		return 6

